import 'package:flutter/material.dart';
import '../utils/hexcolor.dart';
import 'colors.dart';

final ThemeData appThemeData = ThemeData(
  fontFamily: 'Poppins',
  primaryColor: HexColor('#2A39E1'),
  // fontFamily: 'NotoSansTC',
  brightness: Brightness.light,
  textSelectionTheme: TextSelectionThemeData(
    cursorColor: AppColor.themeColor,
    selectionColor:  AppColor.themeColor,
    selectionHandleColor:  AppColor.themeColor,
  ),
  appBarTheme: _appbarTheme(),
  iconTheme: const IconThemeData(
    color: Colors.blue
  ),
  textTheme:TextTheme(
    bodyText1: TextStyle(color: AppColor.textColor,fontSize: 14),
    subtitle1: TextStyle(color: AppColor.smallTextColor,fontSize: 12)
  ),

);

AppBarTheme _appbarTheme() {
  return AppBarTheme(
    // centerTitle: true,

    // color: new Color.fromRGBO(38,116,251,1),
    color: Colors.white,
    // color: HexColor('#2A39E1'),
    elevation: 0,
    titleTextStyle: TextStyle(fontSize: 16),
    iconTheme: IconThemeData(color:Colors.black),  // 图标

  );
}